package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchWaterworksProduceMapper;
import com.ruoyi.system.domain.DispatchWaterworksProduce;
import com.ruoyi.system.service.IDispatchWaterworksProduceService;

/**
 * 水厂生产报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchWaterworksProduceServiceImpl implements IDispatchWaterworksProduceService 
{
    @Autowired
    private DispatchWaterworksProduceMapper dispatchWaterworksProduceMapper;

    /**
     * 查询水厂生产报
     * 
     * @param waterworksProduceId 水厂生产报主键
     * @return 水厂生产报
     */
    @Override
    public DispatchWaterworksProduce selectDispatchWaterworksProduceByWaterworksProduceId(Long waterworksProduceId)
    {
        return dispatchWaterworksProduceMapper.selectDispatchWaterworksProduceByWaterworksProduceId(waterworksProduceId);
    }

    /**
     * 查询水厂生产报列表
     * 
     * @param dispatchWaterworksProduce 水厂生产报
     * @return 水厂生产报
     */
    @Override
    public List<DispatchWaterworksProduce> selectDispatchWaterworksProduceList(DispatchWaterworksProduce dispatchWaterworksProduce)
    {
        return dispatchWaterworksProduceMapper.selectDispatchWaterworksProduceList(dispatchWaterworksProduce);
    }

    /**
     * 新增水厂生产报
     * 
     * @param dispatchWaterworksProduce 水厂生产报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchWaterworksProduce(DispatchWaterworksProduce dispatchWaterworksProduce)
    {
        return dispatchWaterworksProduceMapper.insertDispatchWaterworksProduce(dispatchWaterworksProduce);
    }

    /**
     * 修改水厂生产报
     * 
     * @param dispatchWaterworksProduce 水厂生产报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchWaterworksProduce(DispatchWaterworksProduce dispatchWaterworksProduce)
    {
        return dispatchWaterworksProduceMapper.updateDispatchWaterworksProduce(dispatchWaterworksProduce);
    }

    /**
     * 批量删除水厂生产报
     * 
     * @param waterworksProduceIds 需要删除的水厂生产报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterworksProduceByWaterworksProduceIds(Long[] waterworksProduceIds)
    {
        return dispatchWaterworksProduceMapper.deleteDispatchWaterworksProduceByWaterworksProduceIds(waterworksProduceIds);
    }

    /**
     * 删除水厂生产报信息
     * 
     * @param waterworksProduceId 水厂生产报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchWaterworksProduceByWaterworksProduceId(Long waterworksProduceId)
    {
        return dispatchWaterworksProduceMapper.deleteDispatchWaterworksProduceByWaterworksProduceId(waterworksProduceId);
    }
}
